<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>华为新闻</title>
    <style>
        body {
            display: flex;
            width: 100%;
            height: 100%;
            justify-content: center;
        }

        .p1 {
            font-size: 12px;
            color: #fff;
        }

        .p2 {
            font-size: 15px;
            color: #fff;
            font-weight: 700;
        }

        .a1 {
            text-decoration: none;
            color: #fff;
            font-size: 12px;
        }

        .a2 {
            text-decoration: none;
            color: red;
            font-size: 12px;
        }

        .box {
            position: relative;
            width: 400px;
            height: 300px;
            overflow: hidden;
            margin-top: 100px;
            margin-right: 40px;
        }

        .box .i1 {
            width: 400px;
            height: 300px;
        }

        .box .title {
            position: absolute;
            left: 15px;
            bottom: -40px;
            z-index: 2;
            width: 260px;
            color: #fff;
            transition: all 1s;
        }

        .mask {
            position: absolute;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            background-image: linear-gradient(transparent,
                    rgba(0, 0, 0, 0.5));
            opacity: 0;
            transition: all 1s;
        }

        .box:hover .title {
            transform: translate(0, -40px);
        }

        .box:hover .mask {
            opacity: 1;
        }
    </style>
</head>

<body>
    <div class="box">
        <img src="../img/product.jpeg" class="i1">
        <div class="title">
            <p class="p1">产品</p>
            <p class="p2">OceanStor Pacific海量存储斩获2021 Interop金奖</p>
            <p><a href="#" class="a1">了解更多</a><a href="#" class="a2">></a></p>
        </div>
        <div class="mask"></div>
    </div>
    <div class="box">
        <img src="../img/huawei1.jpeg" class="i1">
        <div class="title">
            <p class="p1">行业洞察</p>
            <p class="p2">迈向智能世界2030</p>
            <p><a href="#" class="a1">了解更多</a><a href="#" class="a2">></a></p>
        </div>
        <div class="mask"></div>
    </div>
    <div class="box">
        <img src="../img/huawei2.jpeg" class="i1">
        <div class="title">
            <p class="p1">《ICT新视界》刊首语</p>
            <p class="p2">笃行致远，共建具有获得感、幸福感、安全感的只会城市</p>
            <p><a href="#" class="a1">了解更多</a><a href="#" class="a2">></a></p>
        </div>
        <div class="mask"></div>
    </div>
</body>

</html>